{% extends "people/base_people.html" %}


{% block title %}{{ object.full_name }}{% endblock %}


{% block content %}
  <h2 class="name">{{ object.full_name }}</h2>
  <h3 class="type">{% for type in object.person_types.all %}<a href="{{ type.get_absolute_url }}">{{ type.title }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</h3>
  
  {% if object.book_set.all %}
  <h3>Books</h3>
  <ul>
    {% for book in object.book_set.all %}
    <li><a href="{{ book.get_absolute_url }}">{{ book.full_title }}</a></li>
    {% endfor %}
  </ul>
  {% endif %}
  
  {% if object.band_set.all %}
  <h3>Bands</h3>
  <ul>
    {% for band in object.band_set.all %}
    <li><a href="{{ band.get_absolute_url }}">{{ band.full_title }}</a></li>
    {% endfor %}
  </ul>
  {% endif %}
  
  {% if object.movie_set.all %}
  <h3>Movies</h3>
  <ul>
    {% for movie in object.movie_set.all %}
    <li><a href="{{ movie.get_absolute_url }}">{{ movie.full_title }}</a></li>
    {% endfor %}
  </ul>
  {% endif %}
  
{% endblock %}